/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.redot.domain;

import com.yunqian.model.BaseModel;
import com.yunqian.redot.constant.Tables;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 微信支付
 *
 * @author czy
 * 2018-10-10 14:43:57
 */
@Data
@Entity
@Table(name = Tables.WECHAT_PAY)
@EqualsAndHashCode(callSuper = false)
public class WechatPay extends BaseModel<Long>{
    
    /**商户订单ID*/
    @Column(name = "out_trade_no")
    private String outTradeNo;
    /**发起支付-时间戳*/
    @Column(name = "time_stamp")
    private String timeStamp;
    /**发起支付-随机字符串*/
    @Column(name = "nonce_str")
    private String nonceStr;
    /**发起支付-prepay_id*/
    @Column(name = "prepay_id")
    private String prepayId;
    /**发起支付-签名*/
    @Column(name = "pay_sign")
    private String paySign;
    /**业务结果 SUCCESS/FAIL*/
    @Column(name = "result_code")
    private String resultCode;
    /**用户标识*/
    @Column(name = "openid")
    private String openid;
    /**微信订单号*/
    @Column(name = "transaction_id")
    private String transactionId;
    /**订单金额*/
    @Column(name = "total_fee")
    private Integer totalFee;
    /**支付完成时间*/
    @Column(name = "time_end")
    private String timeEnd;
    /**错误代码*/
    @Column(name = "err_code")
    private String errCode;
    /**错误代码描述*/
    @Column(name = "err_code_des")
    private String errCodeDes;

    public WechatPay() {
    }

}
